import { Module } from '@nestjs/common';
import { AuthController } from './auth.controller';
import { PassportModule } from '@nestjs/passport';
import { LocalStrategy } from './local.strategy';
import { JwtModule } from '@nestjs/jwt'
import { JwtStrategy } from './jwt.strategy';

@Module({
  imports:[PassportModule,
  JwtModule.registerAsync({
    useFactory(){
      return{
        secret:'adsadmaslk1kljkldjkalsd'
      }
    }
  })],
  controllers: [AuthController],
  providers:[LocalStrategy,JwtModule,JwtStrategy]
})
export class AuthModule {}
